import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MemShoppingCarComponent} from './mem-shopping-car.component';

const routes: Routes = [
    {path: '', component: MemShoppingCarComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mem-shopping-car/add-mem-shopping-car.module#AddMemShoppingCarModule'},
            {path: 'list', loadChildren: './list-mem-shopping-car/list-mem-shopping-car.module#ListMemShoppingCarModule'},
            {path: 'modify', loadChildren: './modify-mem-shopping-car/modify-mem-shopping-car.module#ModifyMemShoppingCarModule'},
            {path: 'report', loadChildren: './report-mem-shopping-car/report-mem-shopping-car.module#ReportMemShoppingCarModule'},
            {path: 'mem-shopping-car', loadChildren: './report-mem-shopping-car/report-mem-shopping-car.module#ReportMemShoppingCarModule'},

        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemShoppingCarRoutingModule {
}
